public class Counter {
    
protected int count; 
  
    //initiates the count as zero
    Counter() {
           count = 0; 
    } 

    //accessor method
    public int getCount() { 
        return count; 
    }

    //increases the count by one (+1) when called
    public void incrementCount() {
        count++; 
    }

    //decreases the count by one (-1) when called
    public void decrementCount() {
        count--; 
    }
}
